# -*- coding:utf-8 -*-

# @Time: 2025/3/6 22:45

# @Author: zhangbo

# @File: LoginBase.py

# @version: v1.0

from utils.read_yaml import Read_yaml


class LoginBase:

    def __init__(self, yaml_path):
        self.login_config = Read_yaml(yaml_path).get_config_data("login_config")

    def login_account_input(self):
        """
        获取账号输入框
        :return:
        """
        return self.login_config["login_config"]["account_base"], self.login_config["login_config"]["username"]

    def login_password_input(self):
        """
        获取密码输入框
        :return:
        """
        return self.login_config["login_config"]["password_base"], self.login_config["login_config"]["password"]

    def login_button(self):
        """
        登录按钮
        :return:
        """
        return self.login_config["login_config"]["login_button"]
